import request from '@/utils/request'

export function getInfo() {
    return request({
        url: '/common/user-info',
        method: 'get',
    })
}
export function getUserDetail() {
    return request({
        url: '/common/user-detail',
        method: 'get',
    })
}
export function getUserAndMenuPermission() {
    return request({
        url: '/common/user-menu-permission',
        method: 'get',
    })
}
export function changePwd(data) {
    return request({
        url: '/common/change-pwd',
        method: 'post',
        data
    })
}
export function enums(code) {
    return request({
        url: '/common/enums/'+ code,
        method: 'get',
    })
}
export function fieldTypeEnums(code) {
    return request({
        url: '/common/field-type/enums',
        method: 'get',
    })
}